import { post } from '@/request/http'

//新增评分
export const insertScore = (data) =>
  post(
    '/FTKJWLHYPT/enter/insertscore',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            fltTotal:data.fltTotal,
            score : data.score,
            fltUuid:data.fltUuid,
            project:data.project
          }
        },
        Orderbys: {},
        PageIndex: {
            FTKJWLHYPT: ''
        },
        PageSize: {
            FTKJWLHYPT: ''
        }
      }
    }
  )
//列表
export const insertScoreList = () =>
  post(
    '/FTKJWLHYPT/enter/getallrule',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            ruleType:'E'
            }
        },
        Orderbys: {},
          PageIndex: {
              FTKJWLHYPT: ''
          },
          PageSize: {
              FTKJWLHYPT: ''
          }
      }
    }
)
//新增
export const insertScoreAdd = (data) =>
post(
  '/FTKJWLHYPT/enter/insertrule',
  {
    Data:{
      Parameters: {
        FTKJWLHYPT: {
          ruleProject:data.ruleProject,  
          ruleStandard:data.ruleStandard,
          ruleMaxscore:data.ruleMaxscore,
          ruleType:'E'
        },
        Orderbys: {},
        PageIndex: {
          FTKJWLHYPT: ''
        },
        PageSize: {
          FTKJWLHYPT: ''
        }
      }
    }
  }
)
//删除
export const insertScoreDel = (data) =>
post(
  '/FTKJWLHYPT/enter/deleterule',
  {
    Data:{
      Parameters: {
        FTKJWLHYPT: {
          ruleId:data.ruleId
        },
      }
    }
  }
)
